package com.xin.di.uav.common.enums;

import com.xin.di.uav.common.utils.ResponseCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author ta136817
 */
@Getter
@AllArgsConstructor
public enum BaseResponseCode implements ResponseCode {

    /**
     * 成功
     */
    SUCCESS("200","成功"),
    /**
     * 失败
     */
    FAIL("500","系统异常"),
    ;

    /**
     * 返回码
     */
    private String responseCode;

    /**
     * 返回消息
     */
    private String responseMessage;

    /**
     * 获取返回码
     * @return
     */
    @Override
    public String getResponseCode() {
        return responseCode;
    }

    /**
     * 获取返回消息
     * @return
     */
    @Override
    public String getResponseMessage() {
        return responseMessage;
    }

}

